<?php
namespace app\admin\validate;

use think\Validate;
/**
 * 角色验证器
 * @package app\admin\validate
 * @author 陈一中 
 */
class User extends Validate
{
    //定义验证规则
    protected $rule = [
        'mobile|手机号'   => 'require|number|length:11|unique:user',
    ];
}
